package com.cnap.multiclouldmgmt.model.knowledge;

import java.time.LocalDateTime;

/**
 * <类文件描述>
 *
 * @author xc
 **/
public class RootCaseDTO {
    // id
    private String id;
    // status
    private String status;
    // createTime
    private LocalDateTime createTime;
    // alarmInfo
    // alarmId
    private String alarmId;
    // ruleName
    private String ruleName;
    // alarmLevel
    private String alarmLevel;
    // resourceName
    private String resourceName;
    // alarmCreateTime
    private LocalDateTime alarmCreateTime;
    // knowledge info
    // knowledgeId
    private String knowledgeId;
    // title
    private String title;
    // suggestion
    private String suggestion;

    /**
     * get
     *
     * @return Id
     */
    public String getId() {
        return id;
    }

    /**
     * set
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * get
     *
     * @return Status
     */
    public String getStatus() {
        return status;
    }

    /**
     * set
     *
     * @param status status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * get
     *
     * @return CreateTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * set
     *
     * @param createTime createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * get
     *
     * @return AlarmId
     */
    public String getAlarmId() {
        return alarmId;
    }

    /**
     * set
     *
     * @param alarmId alarmId
     */
    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    /**
     * get
     *
     * @return RuleName
     */
    public String getRuleName() {
        return ruleName;
    }

    /**
     * set
     *
     * @param ruleName ruleName
     */
    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    /**
     * get
     *
     * @return AlarmLevel
     */
    public String getAlarmLevel() {
        return alarmLevel;
    }

    /**
     * set
     *
     * @param alarmLevel alarmLevel
     */
    public void setAlarmLevel(String alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    /**
     * get
     *
     * @return ResourceName
     */
    public String getResourceName() {
        return resourceName;
    }

    /**
     * set
     *
     * @param resourceName resourceName
     */
    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    /**
     * get
     *
     * @return AlarmCreateTime
     */
    public LocalDateTime getAlarmCreateTime() {
        return alarmCreateTime;
    }

    /**
     * set
     *
     * @param alarmCreateTime alarmCreateTime
     */
    public void setAlarmCreateTime(LocalDateTime alarmCreateTime) {
        this.alarmCreateTime = alarmCreateTime;
    }

    /**
     * get
     *
     * @return KnowledgeId
     */
    public String getKnowledgeId() {
        return knowledgeId;
    }

    /**
     * set
     *
     * @param knowledgeId knowledgeId
     */
    public void setKnowledgeId(String knowledgeId) {
        this.knowledgeId = knowledgeId;
    }

    /**
     * get
     *
     * @return Title
     */
    public String getTitle() {
        return title;
    }

    /**
     * set
     *
     * @param title title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * get
     *
     * @return Suggestion
     */
    public String getSuggestion() {
        return suggestion;
    }

    /**
     * set
     *
     * @param suggestion suggestion
     */
    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }

    /**
     * 转换成vo
     *
     * @return 结果
     */
    public RootCaseVO toVO() {
        RootCaseVO vo = new RootCaseVO();
        vo.setId(this.id);
        vo.setStatus(this.status);
        vo.setCreateTime(this.createTime);

        AlarmVO aLarmVO = new AlarmVO();
        aLarmVO.setId(this.alarmId);
        aLarmVO.setAlarmLevel(this.alarmLevel);
        aLarmVO.setCreateTime(this.alarmCreateTime);
        aLarmVO.setRuleName(this.ruleName);
        aLarmVO.setResourceName(this.resourceName);
        vo.setAlarmInfo(aLarmVO);

        KnowledgeVO knowledgeVO = new KnowledgeVO();
        knowledgeVO.setId(this.knowledgeId);
        knowledgeVO.setSuggestion(this.suggestion);
        knowledgeVO.setTitle(this.title);
        vo.setKnowledgeInfo(knowledgeVO);

        return vo;
    }
}
